package adkr

import "sync/atomic"

// When true, KeyRefresh uses SPBC fast-path; when false (default), use MVBA+ABA+coin
var krSPBCFast int32

func SetKeyRefreshSPBCFast(on bool) {
    if on { atomic.StoreInt32(&krSPBCFast, 1) } else { atomic.StoreInt32(&krSPBCFast, 0) }
}

func IsKeyRefreshSPBCFast() bool { return atomic.LoadInt32(&krSPBCFast) == 1 }






